<view class="page">
    <view bindlongtap="onLongTrap" bindtouchend="touchImgend" bindtouchstart="touchImgstart" class="page__hd">
        <canvas canvasId="myCanvas" class="canvas" hidden="{{bool}}" style="width:100%;height:{{canvasH}}px;"></canvas>
        <view class="bgWord" wx:if="{{!draw}}">
            <view class="icon_line">
                <image src="../../images/camera.png"></image>
            </view>
            <view class="text_line">
                <text>图片仅在本地操作完成，点击选择图片</text>
            </view>
        </view>
    </view>
    <view class="page__bd  page__bd_spacing">
        <view class="cu-form-group">
            <view class="title">文字</view>
            <input bindblur="handleTextBlur" bindfocus="handleTextFocus" bindinput="handleTextChange" class="{{inputFocus?'active':''}}" value="{{defaultText}}"></input>
        </view>
        <view class="cu-form-group">
            <view class="title">颜色</view>
            <view bindtap="handleCircleClick">
                <view class="{{currentColorIndex==item[0]?'circle active':'circle'}}" id="{{item[0]}}" style="{{'background:'+item[1]}}" wx:for="{{ColorMap}}" wx:key="*this"></view>
            </view>
        </view>
        <view class="padding flex flex-direction">
            <button bindtap="previewImg" class="cu-btn bg-cyan shadow lg round">确定</button>
        </view>
    </view>
    <adComponent  wx:if="{{ad}}" ad="{{ad}}"/>
</view>
